package com.Filter;

import javax.servlet.*;
import java.io.IOException;


public class OrderFilter implements Filter {
    public void destroy() {
        System.out.println("OrderFilter已经销毁");
    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("OrderFilter开始执行。");
        chain.doFilter(req, resp);
    }

    public void init(FilterConfig config) throws ServletException {
        System.out.println("OrderFilter初始化成功。");
    }

}
